<?php 

global $conf;

$conf = array();
$conf['DIR'] = 'cms/';
$conf['protocol'] = strtolower(substr($_SERVER["SERVER_PROTOCOL"], 0, strrpos($_SERVER['SERVER_PROTOCOL'], '/')));
$conf['WWW'] = $conf['protocol'] . '://' .  $_SERVER['HTTP_HOST'] . '/' . $conf['DIR'];
$conf['PATH'] = $_SERVER['DOCUMENT_ROOT'] . '/' . $conf['DIR'];
$conf['CACHE_PATH'] = $_SERVER['DOCUMENT_ROOT'] . '/' . $conf['DIR'] . 'cache/';

$conf['INCLUDE_PATHS'] = array(
	$conf['PATH'] . 'library/classes/',
	$conf['PATH'] . 'project/classes/',
);

$conf['DEV_IP'] = array('::1');

$conf['SETNAMESUTF8'] = true;
$conf['CACHEQUERIES'] = true;

$conf['smarty_compile_dir'] = $conf['CACHE_PATH'] . 'templates/';
$conf['smarty_templates_dir'] = $conf['PATH'] . 'library/templates/';  

$conf['smarty_plugins_dir'] = array (
	$conf['PATH'] . 'library/SmartyPlugins/',
	$conf['PATH'] . 'project/SmartyPlugins/',
);

define('WWW', $conf['WWW']);
define('PATH', $conf['PATH']);

include $conf['PATH'] . 'library/core/CoreFunctions.php';



?>